<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-18 13:49:48
 * @Last Modified time: 2023-02-18 13:57:07
 */

namespace app\api\controller\store;	
use think\facade\App;
use app\common\services\store\OrderGoodsService;
/**
 * Class OrderGoods
 */
class OrderGoods extends \app\api\controller\Base
{ 	
    /**
     * OrderGoodsService constructor.
     * @param App $app
     */
    public function __construct(App $app,OrderGoodsService $service)
    {
        parent::__construct($app);
        $this->service = $service;
    }

    /**
     * 获取订单商品详细
     * @method(GET)
     */
    public function detail(){
        $id = $this->request->param('id');
        $this->success($this->service->getOrderGoodsDetail(compact('id')));
    }
}